#include <iostream>
#include <algorithm>
#include <numeric>
#include <vector>

using namespace std;

int main()
{
	vector<int> ivec;
	
	cout<<"enter some integers:"<<endl;
	int val;
	while(cin>>val)
		ivec.push_back(val);

	int result=accumulate(ivec.begin(),ivec.end(),0);

	cout<<result<<endl;

	return 0;
}